package v1

import (
	"github.com/gin-gonic/gin"
	"web_framework/config"
)

type PingAPI struct {
}

func (a PingAPI) Name() string {
	return "ping API"
}

func (a PingAPI) Bind() {
	config.C.Router.GET("/ping", func(c *gin.Context) {
		c.String(200, "pong")
	})
}
